package com.linln.modules.system.domain;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "Patient_Cost_Information", schema = "dbo", catalog = "WQR")
@EntityListeners(AuditingEntityListener.class)
public class PatientCostInformationEntity {
    private Integer id;
    private String jtpjnzsr;
    private String fbzqzdzfy;
    private String qrhdzzlfyzfzb;
    private String fbylmnewzjdfy;
    private String yblx;
    private String zyh;
    @CreatedDate
    private Date createDate;
    private String bah;
    private Date cyrq;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "jtpjnzsr", nullable = true)
    public String getJtpjnzsr() {
        return jtpjnzsr;
    }

    public void setJtpjnzsr(String jtpjnzsr) {
        this.jtpjnzsr = jtpjnzsr;
    }

    @Basic
    @Column(name = "fbzqzdzfy", nullable = true)
    public String getFbzqzdzfy() {
        return fbzqzdzfy;
    }

    public void setFbzqzdzfy(String fbzqzdzfy) {
        this.fbzqzdzfy = fbzqzdzfy;
    }

    @Basic
    @Column(name = "qrhdzzlfyzfzb", nullable = true, length = 4)
    public String getQrhdzzlfyzfzb() {
        return qrhdzzlfyzfzb;
    }

    public void setQrhdzzlfyzfzb(String qrhdzzlfyzfzb) {
        this.qrhdzzlfyzfzb = qrhdzzlfyzfzb;
    }

    @Basic
    @Column(name = "fbylmnewzjdfy", nullable = true)
    public String getFbylmnewzjdfy() {
        return fbylmnewzjdfy;
    }

    public void setFbylmnewzjdfy(String fbylmnewzjdfy) {
        this.fbylmnewzjdfy = fbylmnewzjdfy;
    }

    @Basic
    @Column(name = "yblx", nullable = true, length = 10)
    public String getYblx() {
        return yblx;
    }

    public void setYblx(String yblx) {
        this.yblx = yblx;
    }

    @Basic
    @Column(name = "zyh", nullable = true, length = 20)
    public String getZyh() {
        return zyh;
    }

    public void setZyh(String zyh) {
        this.zyh = zyh;
    }

    @Basic
    @Column(name = "createDate")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "cyrq", nullable = true)
    public Date getCyrq() {
        return cyrq;
    }

    public void setCyrq(Date cyrq) {
        this.cyrq = cyrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PatientCostInformationEntity that = (PatientCostInformationEntity) o;
        return id == that.id && Objects.equals(jtpjnzsr, that.jtpjnzsr) && Objects.equals(fbzqzdzfy, that.fbzqzdzfy) && Objects.equals(qrhdzzlfyzfzb, that.qrhdzzlfyzfzb) && Objects.equals(fbylmnewzjdfy, that.fbylmnewzjdfy) && Objects.equals(yblx, that.yblx) && Objects.equals(zyh, that.zyh) && Objects.equals(createDate, that.createDate);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, jtpjnzsr, fbzqzdzfy, qrhdzzlfyzfzb, fbylmnewzjdfy, yblx, zyh, createDate);
    }

    @Basic
    @Column(name = "bah", nullable = false, length = 20)
    public String getBah() {
        return bah;
    }

    public void setBah(String bah) {
        this.bah = bah;
    }
}
